package ClientServerFacade;



/**
 * @program: course
 * @author: lsn
 * @create: 2024-04-07 12:09
 * @description: 计算费用
 */
public class Charge {
    public final int basicCharge = 12;
    CheckWord checkWord;


    public Charge(CheckWord checkWord) {
        this.checkWord = checkWord;
    }

    public void giveCharge(){
        int charge = checkWord.getAmount() * basicCharge;
        System.out.println("广告费用: " + charge + "元");
    }
}

